package cn.shop.alibaba.service.impl;

import cn.shop.alibaba.beans.User;
import cn.shop.alibaba.mapper.UserMapper;
import cn.shop.alibaba.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description 用户业务实现类
 */
@Service
public class UserServiceImpl implements UserService {

   @Autowired
   private UserMapper userMapper;

    @Override
    public User getUserById(Long userId) {
        return userMapper.selectById(userId);
    }
}
